home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianTextBoxes.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  1KB  |  58 lines

  1. /* external stuff for ScianTextBoxes.c */
  2.  
  3. extern ObjPtr textBoxClass;
  4.  
  5. /* constants for alignment value */
  6. #define    LEFTALIGN    1
  7. #define    CENTERALIGN    2
  8. #define    RIGHTALIGN    3
  9.  
  10. /* bit definitions for textbox style */
  11. #define EDITABLE    0x01
  12. #define WITH_PIT    0x04
  13. #define ONE_LINE    0x08
  14. #define ADJUSTABLE    0x10
  15.  
  16. /*Is textbox predicate*/
  17. #define IsTextBox(tb) IntVarEql(tb, CLASSID, CLASS_TEXTBOX)
  18.  
  19. ObjPtr AlignLeft();
  20. ObjPtr AlignCenter();
  21. ObjPtr AlignRight();
  22. ObjPtr SetTextSizeMethod();
  23. ObjPtr SetTextFontMethod();
  24.  
  25. ObjPtr SelectAll();
  26.  
  27. void InitTextBoxes();
  28. void KillTextBoxes();
  29. #ifdef PROTO
  30. ObjPtr NewTextBox(int, int, int, int, int, char *, char *);
  31. void ActivateTextBox(ObjPtr, Bool);
  32. ObjPtr SetTextBox(ObjPtr, char *);
  33. ObjPtr SetTextFont(ObjPtr, char *);
  34. ObjPtr SetTextSize(ObjPtr, int);
  35. ObjPtr SetTextLineSpace(ObjPtr, int);
  36. ObjPtr SetTextAlign(ObjPtr, int);
  37. ObjPtr SetTextColor(ObjPtr, ObjPtr);
  38. ObjPtr SetTextBGColor(ObjPtr, ObjPtr);
  39. ObjPtr SetTextBoxStyle(ObjPtr, int);
  40. int TextHeight(ObjPtr textBox);
  41. int LineCount(char *, int);
  42.  
  43. #else
  44. ObjPtr NewTextBox();
  45. void ActivateTextBox();
  46. ObjPtr SetTextBox();
  47. ObjPtr SetTextFont();
  48. ObjPtr SetTextSize();
  49. ObjPtr SetTextLineSpace();
  50. ObjPtr SetTextAlign();
  51. ObjPtr SetTextColor();
  52. ObjPtr SetTextBGColor();
  53. ObjPtr SetTextBoxStyle();
  54. int TextHeight();
  55. int LineCount();
  56. #endif
  57.  
  58.